package net.wxxr.http.request;


import net.wxxr.http.auth.PostAuthSign;
import oauth.signpost.http.HttpParameters;


/**
 * 用的时候把post参数用setBodyParams方法设置到bodyParams里，把读取的图片set到image里，没有图片时不用管image
 * picKey是服务器要求的传图片时的参数key，请根据实际情况改动
 * 
 * @author yuanwenfei
 */
public abstract class HttpPostRequest extends HttpBaseRequest {

	HttpParameters bodyParams = new HttpParameters();
	
	/**
	 * json字符串的数据
	 */
	private String bodyData = null;
	
	public String getBodyData() {
		return bodyData;
	}

	public void setBodyData(String bodyData) {
		this.bodyData = bodyData;
	}

	public HttpParameters getBodyParams() {
		return bodyParams;
	}

	public void setBodyParams(HttpParameters bodyParams) {
		this.bodyParams = bodyParams;
	}
	
	@Override
	protected void initAuthSign() {
		if(authSign == null) {
			authSign = new PostAuthSign(consumer, this);
		}
	}
	
}
